package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.GainView
import com.hlhj.carview.bean.GainDetailBean
import com.hlhj.carview.module.GainModule

/**
 * Created by Never Fear   on 2018\12\20 0020.
Never More....
 */
class GainPresenter :BasePresenter<GainModule,GainView>(), GainView {
    override fun setGain(gainDetailBean: GainDetailBean) {
        view?.setGain(gainDetailBean)
    }

    fun getGain(page:Int,c:Context){
        module?.getGain(page, c)
    }
    override fun createModule() {
        module=GainModule()
        module?.lis=this
    }
}